/*
 * @Date: 2022-01-14 11:52:56
 * @LastEditors: LeeKing
 * @LastEditTime: 2022-01-17 15:23:59
 * @FilePath: \jikeyuan\src\App.js
 */
import React, { Component } from 'react'
import { Router, Route, Switch } from 'react-router-dom'
import Login from './pages/Login/index.js'
import Layout from './pages/Layout/index.js'
import AuthRoute from 'components/AuthRoute/index.js'
import NotFound from 'pages/NotFound/index.js'
import history from 'utils/history.js'
export default class App extends Component {
  render() {
    return (
      <Router history={history}>
        <Switch>
          <Route path="/login" component={Login}></Route>
          <AuthRoute path="/home" component={Layout}></AuthRoute>
          <Route component={NotFound}></Route>
        </Switch>
      </Router>
    )
  }
}
